/**   
* @Title: MyAdapter.java
* @Package org.xaoyaoyao.cloud.job.config
* @Description: TODO
* @author xaoyaoyao
* @date Feb 11, 2019 3:58:44 PM
* @version V1.0   
*/
package org.xaoyaoyao.cloud.job.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
* @ClassName: MyAdapter
* @Description: TODO
* @author xaoyaoyao
* @date Feb 11, 2019 3:58:44 PM
* 
*/
@Configuration
public class MyAdapter implements WebMvcConfigurer {

	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		registry.addViewController("/").setViewName("forward:/login.shtml");
		registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
	}
}
